package a.f;

import a.c.*;
import a.c.w;
import a.i.l;

import java.util.Comparator;

public class bb
  extends r
{
  public static final Object g = "y.layout.NormalizingGraphElementOrderStage.COMPARABLE_NODE_DPKEY";
  public static final Object h = "y.layout.NormalizingGraphElementOrderStage.COMPARABLE_EDGE_DPKEY";
  public static boolean i;
  
  public bb() {}
  
  public bb(rc paramrc)
  {
    super(paramrc);
  }
  
  public boolean canLayout(o paramo)
  {
    return true;
  }
  
  public void doLayout(o paramo)
  {
    boolean bool = o.eg;
    int k = o.dg;
    e[] arrayOfe = paramo.t();
    d[] arrayOfd = paramo.u();
    k localk1 = paramo.c(g);
    k localk2 = paramo.c(h);
    if (!bool) {
      if (localk1 == null) {
        throw new IllegalStateException("Required DataProvider not registered with graph using key COMPARABLE_NODE_DPKEY.");
      }
    }
    if (!bool) {
      if (localk2 == null) {
        throw new IllegalStateException("Required DataProvider not registered with graph using key COMPARABLE_EDGE_DPKEY.");
      }
    }
    Comparator localComparator1 = l.g(localk1);
    l.a(arrayOfe, localComparator1);
    Comparator localComparator2 = l.g(localk2);
    l.a(arrayOfd, localComparator2);
    int j = 0;
    do
    {
      do
      {
        if (j >= arrayOfd.length) {
          break;
        }
        paramo.f(arrayOfd[j]);
        j++;
        if (bool) {
          break label150;
        }
        if (k != 0) {
          break label148;
        }
      } while (k == 0);
    } while (bool);
    j = 0;
    label148:
    label150:
    do
    {
      do
      {
        if (j >= arrayOfe.length) {
          break;
        }
        paramo.d(arrayOfe[j]);
        j++;
        if (bool) {
          break label191;
        }
        if (k != 0) {
          break label189;
        }
      } while (k == 0);
    } while (bool);
    j = 0;
    label189:
    label191:
    do
    {
      do
      {
        if (j >= arrayOfe.length) {
          break;
        }
        paramo.e(arrayOfe[j]);
        j++;
        if (bool) {
          break label232;
        }
        if (k != 0) {
          break label230;
        }
      } while (k == 0);
    } while (bool);
    j = 0;
    label230:
    label232:
    do
    {
      do
      {
        if (j >= arrayOfd.length) {
          break;
        }
        paramo.g(arrayOfd[j]);
        j++;
        if (bool) {
          break label273;
        }
        if (k != 0) {
          break label271;
        }
      } while (k == 0);
    } while (bool);
    j = 0;
    label271:
    label273:
    if (j < arrayOfd.length)
    {
      paramo.h(arrayOfd[j]);
      j++;
    }
    for (;;)
    {
      if ((bool) || (k == 0))
      {
        if (k == 0) {
          break;
        }
        if (!bool) {
          a(paramo);
        }
      }
    }
  }
  
  public static void a(q paramq, j paramj1, j paramj2)
  {
    int j = o.dg;
    Object localObject1 = paramq.v();
    Object localObject2;
    do
    {
      if (!((w)localObject1).e()) {
        break;
      }
      localObject2 = ((w)localObject1).d();
      paramj1.a(localObject2, new Integer(((e)localObject2).f()));
      ((w)localObject1).f();
    } while (j == 0);
    localObject1 = paramq.w();
    do
    {
      if (!((m)localObject1).e()) {
        break;
      }
      localObject2 = ((m)localObject1).a();
      paramj2.a(localObject2, new Integer(((d)localObject2).d()));
      ((m)localObject1).f();
    } while (j == 0);
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.bb

 * JD-Core Version:    0.7.0.1

 */